package com.song.osclient.update;


import com.song.osclient.App;

/**
 * Created by song on 2015/7/30.
 */
public class UpdateInfo {
    private int versionCode;
    private String versionName;
    private String updateLog;
    private String downloadUrl;

    public UpdateInfo(int versionCode, String versionName, String updateLog, String downloadUrl) {
        this.versionCode = versionCode;
        this.versionName = versionName;
        this.updateLog = updateLog;
        this.downloadUrl = downloadUrl;
    }

    public boolean isHasNewVersion() {
        int currentVersionCode = App.getVersionCode();
        return currentVersionCode < versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getUpdateLog() {
        return updateLog;
    }

    public void setUpdateLog(String updateLog) {
        this.updateLog = updateLog;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }
}
